package com.shtel.paas.monitorcenter.monitoring.alarm.management.warn.operate.controller;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.shtel.paas.monitorcenter.monitoring.alarm.management.warn.operate.service.WarmOperateService;

@MapperScan("com.shtel.paas.monitorcenter.monitoring.alarm.management.warn.operate.mapper")
@Controller
public class WarmOperateController {
	
	@Autowired
	private WarmOperateService warmOperateService;
	
	@RequestMapping("/warmOperate")
	@ResponseBody
	public String warmDetial(@RequestParam String hostIp, @RequestParam String kpiName) {
		
		String s = warmOperateService.getWarmDetial(hostIp, kpiName);
		
		return s;
	}
}
